-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor converting ODK XML to OSM XML #259
Conversation
… return data types
…select_multiple support
Conflicts must be resolved before merge 👍 |
for more information, see https://pre-commit.ci
Major refactoring. The format parsers for CSV, JSON, or XML are now in a single class, so next several files can be deleted. This reduces code duplication, and improves maintenance. Now the odk2osm.py script takes any of the 3 support formats instead of separate scripts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! json2osm is back 😁
@@ -50,6 +49,7 @@ def __init__( | |||
""" | |||
self.data = data | |||
self.filespec = filespec | |||
self.ignore = ["today", "start", "deviceid", "nodel", "instanceID"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably nodel --> model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ODKInstance.py is about to be deleted, as now parsers.py is used instead. Also now the tags to ignore are in the xforms.yaml file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, json2osm.py is about to be deleted, now odk2osm.py handles all 3 formats from ODK.
The code for converting the raw ODK XML instance files to OSM has not kept up with other improvements in the conversion process. This brings odk2osm.py in sync with the other conversion utilities, while also adding support for select_multiple.